Centralized predictive controller for management and optimal operation of microgrid powered greenhouses

ABSTRACT

Systems, methods, apparatuses, and computer program products for a greenhouse indoor environment controller based on model predictive control (MPC), which can be integrated into existing greenhouse regulatory systems to optimally maintain critical climatic variables, including artificial lighting levels, CO2, indoor temperature, and humidity levels within acceptable limits. The objectives of the MPC may be to maximize the rate of crop photosynthesis while optimizing the use of the available water and energy resources, taking into account the unpredictability and intermittent nature of renewable energies and external atmospheric conditions. Accordingly, certain embodiments may facilitate the management of greenhouses by anticipating control actions for a better quality of production. For that, mathematical formulations of the optimal control problem may be described, and the numerical results related to the application of the MPC to case studies are described integrating the effects of greenhouse structural considerations and the influence of climate data on its operation.

FIELD

Some example embodiments may generally relate to a centralized predictive controller, and specifically, a centralized predictive controller for management and optimal operation of microgrid-powered greenhouses.

BACKGROUND

A greenhouse may be a structure that is used to regulate climatic conditions for growing plants. Such climatic conditions may include ventilation, heating and cooling, lighting, carbon dioxide enrichment, and/or the like.

SUMMARY

According to a first embodiment, a method may include initiating, by a device, a state of a greenhouse. The method may include acquiring new environmental data from one or more sensors after initiating the state of the greenhouse. The method may include updating one or more model predictions based on the acquired data. The method may include computing a predicted renewable power generation of one or more renewable energy sources after updating the one or more model predictions. The method may include performing an optimization calculation based on the one or more model predictions or the predicted renewable power generation. The method may include generating a control signal based on the optimization calculation. The control signal may be to control one or more systems associated with the greenhouse. The one or more systems may be associated with controlling environmental conditions within the greenhouse.

In a variant, the state may be of at least one of: an energy storage unit, a water reservoir, a renewable energy power generation, an inside temperature of the greenhouse, a carbon-dioxide level within the greenhouse, a lighting load within the greenhouse, or an angle of an opening of a vent of the greenhouse. In a variant, initiating the state of the greenhouse may further comprise utilizing a state equation related to computing a state of at least one of: photovoltaic power generation, power generated by a wind turbine generator, a charge of an energy storage unit, a total power consumed by artificial lighting, carbon-dioxide injection, dehumidification, fogging, a total power consumed by one or more pumping stations, a total power purchased from a distributed network operator, or a total power sold to the distributed network operator.

In a variant, the method may further include initiating a timer or a counter prior to acquiring the new environmental data. The timer or the counter may be associated with controlling a quantity of times that the device performs the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization, or the generating the control signal. In a variant, the method may further include determining whether the timer or the counter indicates that the quantity of times that the device performs the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization, or the generating the control signal has satisfied a threshold. In a variant, the method may further include either: performing the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization calculation, or the generating the control signal for an additional time, or terminating further operations.

In a variant, the one or more sensors may include at least one of: one or more internal environmental sensors that monitor an internal environment of the greenhouse, or one or more external environmental sensors that monitor an external environment of the greenhouse. In a variant, the one or more systems may comprise at least one of, a heating or cooling system, an artificial lighting system, a fogging system, or a carbon-dioxide injector system.

In a variant, updating the model predictions may include predicting external environmental conditions of the greenhouse or internal environmental conditions of the greenhouse based on the data. In a variant, the renewable power generation may be associated with one or more photovoltaic panels or one or more wind turbine generators. In a variant, performing the optimization calculation may include performing the optimization calculation utilizing an objective function. In a variant, the objective function may include one or more quadratic errors between one or more manipulated variables and reference trajectory signals. In a variant, the method may include performing the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization calculation, and the generating the control signal for a threshold amount of time or a threshold quantity of iterations.

A second embodiment may be directed to an apparatus including at least one processor and at least one memory comprising computer program code. The at least one memory and computer program code may be configured, with the at least one processor, to cause the apparatus at least to perform the method according to the first embodiment, or any of the variants discussed above.

A third embodiment may be directed to an apparatus that may include circuitry configured to perform the method according to the first embodiment, or any of the variants discussed above.

A fourth embodiment may be directed to an apparatus that may include means for performing the method according to the first embodiment, or any of the variants discussed above. Examples of the means may include one or more processors, memory, and/or computer program codes for causing the performance of the operation.

A fifth embodiment may be directed to a computer readable medium comprising program instructions stored thereon for performing at least the method according to the first embodiment, or any of the variants discussed above.

A sixth embodiment may be directed to a computer program product encoding instructions for performing at least the method according to the first embodiment, or any of the variants discussed above.

BRIEF DESCRIPTION OF THE DRAWINGS

For proper understanding of example embodiments, reference should be made to the accompanying drawings, wherein:

FIG. 1 illustrates an example of a microgrid-powered greenhouse architecture that includes a centralized predictive controller for management and optimal operation of the greenhouse, according to some embodiments;

FIG. 2 illustrates an example of a smart network of greenhouses integrated microgrid (NGIM), according to some embodiments;

FIG. 3 illustrates an example flow chart of a process, according to some embodiments;

FIG. 4 illustrates examples of predicted outdoor atmospheric conditions, including temperature, humidity, CO2, solar radiance, and wind speed over 24-hour and 4-days intervals, according to some embodiments;

FIG. 5 illustrates an example of photovoltaic and wind production, according to some embodiments;

FIG. 6 illustrates an example of combined heat and power (CHP) greenhouse thermal power with different covering materials used for greenhouse glazing, according to some embodiments;

FIG. 7 illustrates an example of an energy storage unit optimal state and energy sold to a grid, according to some embodiments;

FIG. 8 illustrates an example of model predictive control-based greenhouse equipment power demands, according to some embodiments;

FIG. 9 illustrates an example of optimal values of a greenhouse microclimate, according to some embodiments;

FIG. 10 illustrates an example model predictive control of a water reservoir, according to some embodiments;

FIG. 11 illustrates an example 4-day energy storage unit optimal state, according to some embodiments;

FIG. 12 illustrates an example 4-day model predictive control-based greenhouse equipment power demand, according to some embodiments;

FIG. 13 illustrates example 4-day optimal values of the greenhouse microclimate, according to some embodiments;

FIG. 14 illustrates an example 4-day model predictive control of a water reservoir, according to some embodiments; and

FIG. 15 illustrates an example block diagram of apparatuses, according to an embodiment.

DETAILED DESCRIPTION

It will be readily understood that the components of certain example embodiments, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of some example embodiments of systems, methods, apparatuses, and computer program products for centralized predictive controller for management and optimal operation of microgrid-powered greenhouses is not intended to limit the scope of certain embodiments but is representative of selected example embodiments.

The features, structures, or characteristics of example embodiments described throughout this specification may be combined in any suitable manner in one or more example embodiments. For example, the usage of the phrases “certain embodiments,” “some embodiments,” or other similar language, throughout this specification refers to the fact that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment. Thus, appearances of the phrases “in certain embodiments,” “in some embodiments,” “in other embodiments,” or other similar language, throughout this specification do not necessarily all refer to the same group of embodiments, and the described features, structures, or characteristics may be combined in any suitable manner in one or more example embodiments. In addition, the phrase “set of” refers to a set that includes one or more of the referenced set members. As such, the phrases “set of,” “one or more of,” and “at least one of,” or equivalent phrases, may be used interchangeably. Further, “or” is intended to mean “and/or,” unless explicitly stated otherwise.

Additionally, if desired, the different functions or operations discussed below may be performed in a different order and/or concurrently with each other. Furthermore, if desired, one or more of the described functions or operations may be optional or may be combined. As such, the following description should be considered as merely illustrative of the principles and teachings of certain example embodiments, and not in limitation thereof.

With the threats of climate change, human population growth, and scarcity of available water and arable land, the agriculture sector is facing challenges in ensuring food security. Thus, shifting from traditional farming systems to sustainable intensification of agriculture favoring greenhouse crops as a means of productivity gains may be needed. Greenhouses have opened a new perspective in the agricultural sector by offering economical land use, as well as carrying out energy and water savings. They are used in floriculture and horticulture to extend cultural seasons, to protect plants from adverse environmental conditions, such as extreme temperatures, wind, hail and rain, and/or to screen out plant pests and diseases. One goal of a greenhouse may include controlling the indoor environment of the greenhouse to promote the quality, quantity, and growth of a crop. However, their indoor environment intelligent monitoring can be a complex procedure because of the number of involved variables and the dependence of these variables on each other. The appropriate management of the indoor climatic conditions can be highly influenced, in addition to the external environmental conditions, by other parameters including the indoor temperature, the relative humidity, the carbon-dioxide (CO₂) concentration, and/or the indoor light intensity. These variables may have to be optimally controlled within acceptable limits.

To meet the desired needs, several control strategies have been discussed with respect to various techniques, such as fuzzy logic controllers and proportional integrative derivative distributed controllers using genetic algorithms that represent useful tools compared to traditional control techniques. Robust control has also been used with respect to greenhouse temperature and hygrometry control, despite the high interaction between the process variables and the external meteorological conditions. Furthermore, a Bayesian network has been used for approximation of a control signal based on predefined set points, as well as on the environmental conditions.

However, the above-mentioned techniques have focused on improving the greenhouse internal climate without considering energy concerns. For instance, the high energy consumption of greenhouses can be a factor in hindering further development of environmental controls of greenhouses. To reduce the dependence on constrained production of unsustainable energy, the integration of different renewable energy sources (RES) has led to the concept of microgrids. Microgrids can be considered as portions of a power distribution network that includes loads, distributed generations, and energy storage devices, grouped together within a limited geographic area. They can deliver added value due to their ability to integrate renewable energies in a grid-connected mode, along with their ability to continue operating in isolated (non-grid-connected) modes without disruption to the main network or to the microgrid itself. In a grid-connected configuration, the microgrid may be connected to the distribution network operator (DNO), which may provide mutual benefits in selling/purchasing power. In an isolated mode, the microgrid may have to achieve renewable energy autonomy through an energy storage unit to ensure the stability of the network and the continuity of the service.

The implementation of microgrids in the agricultural sector may correspond to the needs of enhancing the quality and security of energy supply and of increasing RES autonomy in rural areas. These agricultural microgrids can produce local socio-economic and environmental benefits. Besides, they can offer an interesting opportunity in promoting green development, while ensuring the reliability, flexibility, efficiency, and environmentally friendly communication capabilities, stimulating the modernization of the agricultural sector. Their main goal may be to assist in balancing the power generation and the power consumption using sensors, communications, and monitoring technologies. Particularly, greenhouses can be considered as microgrids because of the availability of distributed energy resources and different load types. Thus, they can work in grid connected configuration injecting/extracting electricity excesses/needs into/from the network. Even the grid disconnected configuration can maximize the local resources. With the integration of advanced data processing and smart metering technologies, farmers can have access to management systems that help in supervising their energy needs while automatically controlling the greenhouse indoor microclimate.

From the energy management viewpoint, many techniques may have been proposed for the optimal handling of energy consumption during the operation of greenhouses. Commonly, the existing methods fail to globally optimize the energy utilization due to a lack of general optimization scheme that considers the stochasticity of weather conditions, the intermittent behavior of RES, and the storage dynamics, which can be a dynamic way for more efficient real-time control. Previous approaches have focused on a partial control of the greenhouse operation neglecting the global optimal management related to the optimal environment, the parameters correlation, the energy consumption, and the efficient control. However, microgrids may achieve high performance through the deployment of advanced control algorithms based on predicted future conditions, the optimal use of storage devices, and the implementation of optimal-based, instead of heuristic-based, approaches. Also, from the control point of view, model predictive control (MPC) has been suggested by the power system community as it offers many advantages, such as being based on the system predictions, as well as providing feedback mechanisms that handle uncertainties and constraints, which may be attractive for systems dependent on renewable energy forecasts.

In regards to greenhouse energy management systems, several control techniques have been attempted to minimize the energy required for the microclimate regulation. Within this scope, some techniques have focused on integrating renewable energy sources to reduce the cost for an economical crop growth by providing a sustainable way to obtain greenhouse energy supply. The technologies used in this context are often photovoltaic (PV) modules, geothermal systems, hybrid photovoltaic/thermal solar collectors, or a combination of these. However, from a different aspect, other techniques have focused on the control optimization based on mathematical models for optimal greenhouse cultivation practices.

Some of these approaches may be deterministic and may not integrate the randomness of the weather conditions, which may be effective in dealing with data uncertainty in optimal operations. Weather forecast tools may be used by greenhouse growers because of their potential to reduce energy demand. For example, they may allow, in combination with the greenhouse energy consumption prediction model, to solve the load modeling problem in smart grid applications. Although, under the micro grid paradigm, some techniques have attempted to optimize the greenhouse energy utilization, taking into account the weather conditions by considering forecasting results. Their objective was to minimize the total energy costs and demand charges via a hierarchical model, but without integrating RES. Some techniques have proposed a greenhouse optimal energy management strategy for both grid-connected and isolated modes based on robust optimization. Some techniques have attempted use of a stochastic multi-timescale energy management scheme of greenhouses with renewable energy sources.

As can be understood from this description, appropriate management of environmental conditions may be a fundamental problem for greenhouse cultivation and may have to be achieved through advanced control strategies. Some embodiments described herein may provide for a greenhouse indoor environment controller based on model predictive control (MPC), which can be integrated into existing greenhouse regulatory systems to optimally maintain climatic variables, including artificial lighting levels, and/or CO₂, indoor temperature, and humidity levels within acceptable limits. The objectives of the MPC may include maximizing the rate of crop photosynthesis while optimizing the use of the available water and energy resources, taking into account the unpredictability and intermittent nature of renewable energies and external atmospheric conditions. This may facilitate the management of greenhouses by anticipating control actions for a better quality of production. For that, the mathematical formulation of the optimal control problem may be described herein, and the numerical results related to the application of the MPC to a case study may be described, integrating the effects of greenhouse structural considerations and the influence of climate data on its operation.

Certain embodiments may pool different active systems that make up the greenhouse in order to deploy control means for an overall optimization of greenhouse operation (e.g., in the context of microgrids). The greenhouse may be connected to both photovoltaic panels and wind turbine generators, and to the distributed network operator. Certain embodiments may include use of an energy storage unit and/or a water reservoir. In this way, certain embodiments may provide for installing a unit for the production and storage of green electricity, such as to integrate certain embodiments into a sustainable development approach, using clean energy. In addition, certain embodiments may integrate the data acquisition via a wireless sensor network (WSN) and the global control via a centralized model predictive controller. The model can be implemented as a supervisory real-time control in the existing greenhouse energy management systems, to effectively manage their overall energy and water demand, production and storage, and/or the like, such as to track optimal levels of the greenhouse environment parameters.

To develop an innovative greenhouse environment control scheme that manipulates the parameters affecting the crop growth (e.g., indoor temperature, relative humidity, CO2 rate, lighting levels, and natural ventilation), while optimizing the energy and water consumptions, taking into account the uncertainty of the external atmospheric conditions and the intermittent nature of renewable energy sources and water needs. Thus, certain embodiments may provide a centralized model predictive controller that considers various operational requirements and constraints. The centralization of operations may balance electricity production, by preventing overproduction and under production, and may protect against overloads. In this way, certain embodiments may provide a renewable energy system that reinforces production in a sustainable agriculture approach that conserves natural resources.

FIG. 1 illustrates an example of a microgrid-powered greenhouse 100 architecture that includes a centralized predictive controller for management and optimal operation of the greenhouse 100, according to some embodiments. For example, the greenhouse 100 may include various environmental control systems 102 (e.g., a heating and cooling system 102-1, an artificial lighting system 102-2, a fogging system 102-3, and a CO₂ injector 102-4), various indoor sensors 104 for detecting indoor environmental conditions within the greenhouse 100 (e.g., a humidity sensor, a temperature sensor, a light sensor, and/or the like), and/or various external environment sensors 106 for detecting environmental conditions external to the greenhouse 100 (e.g., an air temperature sensor, an air humidity sensor, a CO₂ concentration sensor, a solar radiation sensor, a wind speed sensor, and/or the like). The greenhouse 100 may be connected to a water pump and/or reservoir system 107 that includes a water pump to the greenhouse 100, a master pump, and/or a water reservoir. The greenhouse 100 may be connected to an electricity supply network 108 (e.g., that includes wind turbines, PV panels, storage batteries (as energy storage units), a DNO, power converters (AC/AC or DC/AC converters), and/or the like. The greenhouse 100 may be a microgrid that is connected to the DNO through electronic converters to reduce instability due to the intermittent nature of power generation and load demand. The PV panels and/or the wind turbines may represent renewable energy sources. Thermal, electrical, and water loads representing actuating devices demand, such as the fogging system, the dehumidifier, the CO2 injector, the artificial lighting system, the pumps, and the heating and cooling system, may be present with the example illustrated in FIG. 1 .

As further illustrated, the greenhouse 100 (or various systems 102 and/or sensors 104, 106) may be connected to an energy management system (EMS) 110, which may optimize the production performance of the greenhouse 100. The EMS 110 may be connected to a data acquisition system (not shown in FIG. 1 ) that collects data from the sensors 104, 106.

The EMS 110 may optimize autonomous greenhouse operation. As illustrated at 112, the EMS 110 may collect data from the different sensors 104, 106 available on-site to predict, with an interval (e.g., of 10 minutes), information related to the outdoor environment of the greenhouse 100, including temperature, humidity, CO₂, wind speed, and solar radiance. These forecasts may be first used by the EMS 110 to determine the predicted quantity of power generated from photovoltaic panels and wind turbine generators.

In certain embodiments, the EMS 110 may implement rules for the predicted quantities (e.g., for a greenhouse 100, when the EMS 110 operates as a master central controller (MCC), and/or the like). Additionally, or alternatively, the EMS 110 may send the predicted quantities to a main controller (e.g., a MCC via a supervisory master unit (SMU), described below, in cases where the EMS 110 is a local controller), where the rules are implemented. The EMS 110 may generate set points control signals for the existing actuators considering optimal ranges and control parameter constraints and/or based on the predicted quantities. For example, the EMS 110 may generate control signals that optimally distribute the renewable power to the greenhouse loads while reducing fluctuations by selling the remaining surplus power to the network or storing it in the batteries as a replacement. As illustrated at 114, the EMS 110 may transmit the control signals to the systems 102 to control internal environmental conditions in the greenhouse 100, to other components to cause surplus power to be provided to the electricity supply network 108, and/or the like. In this way, indoor conditions of a greenhouse 100 may be controlled to improve cultivation, while reducing waste of electricity or other resources, such as water or CO₂, thereby improving operations of a greenhouse 100.

As described above, FIG. 1 is provided as an example. Other examples are possible, according to some embodiments.

FIG. 2 illustrates an example of a NGIM, according to some embodiments. For example, the NGIM may form a small power grind. The NGIM may include renewable energy generators 200 (e.g., illustrated as solar PV panels and wind turbines), an energy storage system (ESS) 202 (e.g., illustrated as batteries), and power converters 204 (e.g., illustrated as AC/AC or DC/AC converters). The energy generators 200, the ESS 202, and the power converters 204 may be included in an electrical supply network (“electrical supply side”), which may be similar to electrical supply network 108 described above. The NGIM may include a network of greenhouses 206 (e.g., that includes greenhouses 100-1 through 100-N, where each greenhouse 100 may include one or more components of the greenhouse 100), and pumps and/or water storage 208. In addition, the NGIM may include a distributed network operator (DNO) 210 that provides bidirectional power exchanges.

Certain embodiments described herein may provide a centralized controller that can be used to control environmental conditions at each of the greenhouses 100 of the NGIM. For example, each greenhouse 100 may be associated with an EMS 110 and the EMSs 110 may be connected to an MCC 214 via a SMU 212. Continuing with the previous example, the EMS 110 may function as a master central controller to control operation of each of the greenhouses 100-1 through 100-N (e.g., where the SMU 212 functions as an interface between the MCC 214 and the EMSs 110 operating as local controllers at each of the greenhouses 100-1 through 100-N). Alternatively, the EMS 110, the SMU 212, and the MCC 214 may be integrated into a single device that performs the operations of all three of these devices (e.g., the integrated device may be a local device at each greenhouse 100, or may be a centralized device that is directly connected to greenhouses 100-1 through 100-N.

As indicated above, FIG. 2 is provided as an example. Other examples are possible, according to some embodiments.

FIG. 3 illustrates an example flow diagram of a method, according to some embodiments. For example, FIG. 3 shows example operations of a EMS 110 (e.g., apparatus 10). Some of the operations illustrated in FIG. 3 may be similar to some operations shown in, and described with respect to, FIGS. 1-2 and 4-15 .

Certain embodiments may utilize predictive control, which may be based on the use of a dynamic model of a process in the EMS 100 in real time in order to anticipate future behaviors. For example, at a time step, the EMS 100 may compute predictions of the controlled variables up to a time horizon (Np), to determine the future control sequence for each power flow. This may be performed to reach desired set points by following a reference trajectory. An element of the calculated control may be applied at the next clock stroke. As described below, these steps may be repeated utilizing a receding horizon principle (e.g., at the next time step new power and load data may be available, allowing the EMS 100 to compute a new control sequence). One advantage of this approach may be its ability to anticipate future events while providing a clear constraints management. This MPC method is depicted in FIG. 3 .

In an embodiment, the method may include, at 300, initiating a state of a greenhouse. For example, the EMS 110 may initiate a state of a greenhouse 110. The state of the greenhouse 110 may include, for example, a state of the energy storage unit (ESU), the water reservoir, the renewable energy power generation, the inside temperature, the inside humidity, the CO₂ level, the lighting load, the vent opening angle of a vent to an exterior of the greenhouse 100, and/or the like.

Certain embodiments described herein may utilize various state equations in connection with the operations illustrated at 300. For example, the state equations may be associated with PV power generation, power generated by a wind turbine generator, a state of charge of the ESU, a total power consumed by artificial lighting, CO2 injection, dehumidification, fogging, total power consumed by pumping station(s), total power purchased from a DNO, and/or total power sold to a DNO. The state equations that may be utilized in connection with certain embodiments are described elsewhere herein.

The method may include, at 302, performing certain following operations for time periods (or iterations) (t) 1 to n. For example, the EMS 110 may set a timer and/or a counter to measure an amount of time (or number of iterations) of a certain operations described herein. The EMS 110 may perform the operations for a threshold amount of time (e.g., time 1 to n) or a certain number of iterations (e.g., iterations 1 to n).

The method may include at 304, acquiring new environmental data from sensors. For example, the EMS 110 may acquire new environmental data from sensors 106, similar to that described above at 112. The sensors 106 may measure an outside temperature of a greenhouse 100, an outside humidity of a greenhouse 100, an outside CO₂ level of the greenhouse 100, a solar radiance of a greenhouse 100, and/or a wind speed of a greenhouse 100. Additionally, or alternatively, the EMS 110 may obtain data from sensors 104 related to internal environmental conditions of a greenhouse 110. The EMS 110 may acquire the data periodically, according to a schedule, and/or the like.

The method may include, at 306, updating model predictions. For example, the EMS 110, based on the acquired data, may predict external and/or internal environmental conditions for a greenhouse 100, plant growth of plants within the greenhouse 100, and/or the like. The manner in which certain embodiments update model predictions is described elsewhere herein.

The method may include, at 308, computing a predicted renewable power generation. For example, the EMS 110 may compute a predicted renewable power generation of renewable energy sources (e.g., PV panels and/or wind turbines) included in the electricity supply network 108. The manner in which the EMS 110 may compute the predicted renewable power generation is described elsewhere herein.

The method may include, at 310, performing an optimization calculation and generating a control signal for t=1. For example, the EMS 110 may perform an optimization calculation that optimizes minimization of the purchased energy from the DNO, and minimization of deviations from the reference trajectory signals representing the optimal greenhouse environment data as well as the optimal energy and water storage levels, as described elsewhere herein. In addition to performing the optimization, the EMS 110 may generate a control signal for t=1. For example, the control signal may control one or more of the systems 102 to control internal environmental conditions of the greenhouse 100.

The method may include, at 312, determining whether t=n. For example, the EMS 110 may determine whether t=n. If the EMS 110 determines that t=n (312—YES), then the method may end. Alternatively, if the EMS 110 determines that t does not equal n (312—NO), then the method may return to operation 304. For example, after generating the control signal at t=1, the method may return to 304 and the EMS 110 may perform operations 304 through 310, resulting in generation of a control signal at t=2. When the method returns to 304, the EMS 110 may iterate a timer or a counter. Performance of the optimization and/or generation of the control signal is described elsewhere herein.

As described above, FIG. 3 is provided as an example. Other examples are possible according to some embodiments.

The following provides further description of some embodiments of certain operations described herein. In a greenhouse 100, the efficiency of plant production may be determined by the adjustment of certain climate growth conditions. These factors, for the quality and productivity of plant growth, may include air temperature, relative humidity, light intensity, and/or CO₂ rate. To achieve good quality and high production at low expense, these environmental variables may have to be optimally controlled through heating, supplementary lighting, CO2 enrichment by injection, humidifying/dehumidifying, and/or air ventilation. To do so, certain embodiments may utilize an objective function in connection with certain operations described herein, such as the operations at 310.

The main objective may include minimizing the purchased energy from the DNO, and minimizing deviations from the reference trajectory signals representing the optimal greenhouse environment data as well as the optimal energy and water storage levels. This may help to ensure safety and a good service quality. For this, the objective function may include quadratic errors between the manipulated variables and reference trajectory signals. The objective function may be represented by equation (1):

$\begin{matrix} {J = {u_{edn} + {\sum\limits_{t = 1}^{T}\left( {{\Phi_{in}\left( {t + k} \right)} - \overset{\_}{\Phi_{in}\left( {t + k} \right)}} \right)^{2}} + {\sum\limits_{t = 1}^{T}\left( {{{RH}^{\;{in}}\left( {t + k} \right)} - \overset{\_}{{RH}^{in}\left( {t + k} \right)}} \right)^{2}} + {\sum\limits_{t = 1}^{T}\left( {{{CO}_{2}^{in}\left( {t + k} \right)} - \overset{\_}{{CO}_{2}^{in}\left( {t + k} \right)}} \right)^{2}} + {\sum\limits_{t = 1}^{T}\left( {{u_{al}\left( {t + k} \right)} - \overset{\_}{u_{al}\left( {t + k} \right)}} \right)^{2}}\text{} + {\sum\limits_{t = 1}^{T}\left( {{F_{gh}\left( {t + k} \right)} - \overset{\_}{F_{gh}\left( {t + k} \right)}} \right)^{2}}\text{} - {\sum\limits_{t = 1}^{T}\left( {{E_{st}\left( {t + k} \right)} - \overset{\_}{E_{st}\left( {t + k} \right)}} \right)^{2}}\text{} - {\sum\limits_{t = 1}^{T}\left( {{r\left( {t + k} \right)} - \overset{\_}{r\left( {t + k} \right)}} \right)^{2}}}} & (1) \end{matrix}$

Certain embodiments described herein may utilize dynamic model constraints, such as photovoltaic (PV) power generation, wind turbine power output, energy storage unit, a pumping station and/or water storage system, a temperature control system, a humidity control system, a CO2 injector system, air circulation control, and an artificial lighting system. For example, these model constraints may be utilized in connection with operation 310.

With respect to PV power generation, photovoltaic production may depend on the solar radiation of the site on which the panels are installed, in addition to the technical characteristics of the panel itself. The optimum voltage V_(pv) and current I_(pv) generated may be represented by equations (2) and (3):

$\begin{matrix} {{I_{pv}(t)} = {{I_{sc}\left\{ {1 - {\alpha\left\lbrack {{\exp\;\left( \frac{V_{mp}}{\beta V_{oc}} \right)} - 1} \right\rbrack}} \right\}} + {\Delta{I(t)}}}} & (2) \\ {{V_{pv}(t)} = {{V_{mp}\left\lbrack {1 + {{0.0}539\;{\log\left( \frac{I(t)}{I_{st}} \right)}}} \right\rbrack} + {\mu\Delta{T(t)}}}} & (3) \end{matrix}$ where,

$\begin{matrix} {\alpha = {\left( {1 - \frac{I_{mp}}{I_{sc}}} \right){\exp\left\lbrack {- \frac{V_{mp}}{BV_{oc}}} \right\rbrack}}} & (4) \\ {\beta = \frac{\frac{V_{mp}}{V_{oc} - 1}}{\ln\left( {1 - \frac{I_{mp}}{I_{sc}}} \right)}} & (5) \\ {{\Delta\;{I(t)}} = {{{\gamma\left( \frac{I(t)}{I_{st}} \right)}\Delta\;{T(t)}} + {\left( {\frac{I(t)}{I_{st}} - 1} \right)I_{sc}}}} & (6) \\ {{\Delta\;{T(t)}} = {T_{amb} + {0.02{I(t)}}}} & (7) \end{matrix}$ The PV power generation may be represented by equation (8): u _(pv)(t)=η_(pv,s)η_(pv,p) V _(pv)(t)I _(pv)(t)η_(loss)  (8) The power output of the PV module may be limited between upper and lower bounds: u _(pv,min) <u _(pv)(t)<u _(pv,max)  (9)

With respect to wind turbine power output, the wind turbine may derive its energy from the kinetic energy of the wind, which may depend on its speed. A wind turbine's power output may be provided from a linear model:

$\begin{matrix} {u_{w} = \left\{ \begin{matrix} 0 & {{v_{wind}(t)} < v_{c}} \\ \; & {{{P_{w}\left( {A_{w} + {B_{w}{v_{wind}(t)}}} \right)}v_{c}} \leq {v_{wind}(t)} \leq v_{r}} \\ \; & {{P_{w}v_{r}} \leq {v_{wind}(t)} \leq v_{f}} \\ 0 & {{v_{wind}(t)} > v_{f}} \end{matrix} \right.} & (10) \end{matrix}$ with

$\begin{matrix} \left\{ \begin{matrix} {A_{w} = \frac{v_{c}}{v_{c} - v_{r}}} \\ {B_{w} = \frac{1}{v_{r} - v_{c}}} \end{matrix} \right. & (11) \end{matrix}$ The wind turbine power output may be limited between upper and lower bounds: u _(w,min) <u _(w)(t)<u _(w,max)  (12)

The greenhouse 100 may be equipped with an energy storage unit (batteries) whose function may be to balance the electric loads and renewable energy power generation. The ESU may be modeled as an energy reservoir with a certain degree of performance and upper and lower storage bounds. Its characteristics may be represented by: E _(st)(t+Δt)=E _(st)(t)+η_(Char) u _(Char)(t)Δt−η _(Dis) u _(Dis)(t)Δt  (13) The energy stored may satisfy the ESU capacity limits: E _(st,min) <E _(st)(t+Δt)<E _(st,max)  (14) u _(Char,min) <u _(Char)(t+Δt)<u _(Char,max)  (15) u _(Dis,min) <u _(Dis)(t+Δt)<u _(Dis,max)  (16) Charging and discharging may not operate simultaneously: u _(Char)(t+Δt)*u _(Dis)(t+Δt)=0  (17)

The greenhouse 100 may be equipped with a water storage system (reservoir) used to provide water supply. It may be represented by: r(t+Δt)=r(t)+[F _(s)(t)−F _(gh)(t)]  (18) where the water flows may be related to the electrical energy consumed by the pumping stations as follows:

$\begin{matrix} {{F_{s}(t)} = {\frac{{u_{p1}(t)}*\Delta t}{3600\rho gd_{s}}\eta_{s}}} & (19) \\ {{F_{gh}(t)} = {\frac{{u_{p\; 2}(t)}*\Delta t}{3600\rho gd_{gh}}\eta_{gh}}} & (20) \end{matrix}$ The water flows and the water stored in the reservoir may satisfy upper and lower limits:

$\begin{matrix} {r_{\min} < {r\left( {t + {\Delta t}} \right)} < r_{\max}} & (21) \\ {{{\alpha_{sp}\left( {t + k} \right)}F_{s,\min}} \leq {F_{s}\left( {t + k} \right)} \leq {{\alpha_{sp}\left( {t + k} \right)}F_{s,\max}}} & (22) \\ {{{\alpha_{pgh}\left( {t + k} \right)}F_{{gh},\min}} \leq {F_{gh}\left( {t + k} \right)} \leq {{\alpha_{pgh}\left( {t + k} \right)}F_{{gh},\max}}} & (23) \\ {{\alpha_{sp}\left( {t + k} \right)} = \left\{ \begin{matrix} {{0\mspace{14mu}{if}\mspace{14mu}{F_{s}\left( {t + k} \right)}} \leq F_{s,\min}} \\ {{1\mspace{14mu}{if}\mspace{14mu}{F_{s}\left( {t + k} \right)}} \geq F_{s,\min}} \end{matrix} \right.} & (24) \\ {{\alpha_{pgh}\left( {t + k} \right)} = \left\{ \begin{matrix} {{0\mspace{14mu}{if}\mspace{14mu}{F_{gh}\left( {t + k} \right)}} \leq F_{{gh},\min}} \\ {{1\mspace{14mu}{if}\mspace{14mu}{F_{gh}\left( {t + k} \right)}} \geq F_{{gh},\min}} \end{matrix} \right.} & (25) \end{matrix}$

Temperature may be a factor controlling the rate of photosynthesis. At low to moderate temperatures, the interactions activity may increase with increasing temperature in accordance with the Arrhenius relationship. Thus, to avoid the decrease of crop growth, the greenhouse may include a micro-CHP that aims to maintain the indoor temperature at its optimal desired level. It may be represented as:

$\begin{matrix} {{\Phi_{in}\left( {t + {\Delta\; t}} \right)} = {{{\Phi_{in}(t)}e^{\frac{\Delta\; t}{R_{th}C_{air}}}} + {\left( {{R_{th}{u_{heat}^{th}(t)}} + {\Phi_{out}(t)}} \right)\left( {1 - e^{\frac{\Delta\; t}{R_{th}C_{air}}}} \right)}}} & (26) \end{matrix}$ where the electric power may be defined as:

$\begin{matrix} {{u_{heat}^{elc}(t)} = {\frac{\eta_{el}}{\eta_{th}}{u_{heat}^{th}(t)}}} & (27) \end{matrix}$ Thermal resistance of the greenhouse covering material may be based on the greenhouse geometry, the covering material conductivity, and thickness of the covering material, which may be represented by:

$\begin{matrix} {R_{th} = \frac{e}{A \cdot k}} & (28) \end{matrix}$ The inside temperature of the greenhouse 100 may be limited by lower and upper bounds: Φ_(in,min)≤Φ_(in)(t)≤Φ_(in,max) The micro-CHP power outputs may be limited by lower and upper bounds: Φ_(in,min)≤Φ_(in)(t)≤Φ_(in,max)  (29) u _(heat,min) ^(th)(t+k)≤u _(heat) ^(th)(t+k)≤u _(heat,max) ^(th)(t+k)  (30) u _(heat,min) ^(el)(t+k)≤u _(heat) ^(el)(t+k)≤u _(heat,max) ^(el)(t+k)  (31) The micro-CHP power output slope may be represented by:

$\begin{matrix} {{{- \frac{\eta_{th}}{\eta_{el}}}u_{r}} \leq {{u_{heat}^{th}\left( {t + k} \right)} - {u_{heat}^{th}\left( {t + k - 1} \right)}} \leq {\frac{\eta_{th}}{\eta_{el}}u_{r}}} & (32) \\ {{- u_{r}} \leq {{u_{heat}^{el}\left( {t + k} \right)} - {u_{heat}^{el}\left( {t + k - 1} \right)}} \leq u_{r}} & (33) \end{matrix}$

Relative humidity inside the greenhouse 100 may be considered as a variable affecting the crop growth. The water flow taken in by the roots and evaporated through the leaves into the air for the transpiration process can be affected by the humidity level. The higher the relative humidity, the more slowly transpiration may occur, which may cause tissue damage, growth delays, and/or disease propagation. In addition, low humidity may cause hydria stress and may affect the process of photosynthesis. Therefore, relative humidity inside the greenhouse 100 may have to be supervised to offer an optimal environment for crop growth. The relative humidity may be represented by:

$\begin{matrix} {{R{H_{in}(t)}} = {\frac{P_{par}(t)}{P_{sat}(t)}100\%}} & (34) \end{matrix}$ where both saturated and partial pressures can be represented by:

$\begin{matrix} {{P_{sat}(t)} = {K_{1}\left( {{- K_{2}} + {K_{3}e^{K_{4}{\Phi_{in}{(t)}}}}} \right)}} & (35) \\ {{P_{par}(t)} = \frac{{w(t)}P_{atm}}{K_{5}}} & (36) \end{matrix}$ The water content of the indoor air w(t) may be modeled based on the mass balance theory, taking into consideration the moisture ventilated by natural air ventilation and the water quantity added or removed by the fogger or dehumidifier, represented by:

$\begin{matrix} {{{{w\left( {t + {\Delta t}} \right)} = {{w(t)} +}}\quad}{\frac{\Delta t}{\rho_{a}V}\left\lbrack {{W_{evp}A} + {\rho_{a}A{u_{vent}\left( {{W_{out}(t)} - {w(t)}} \right)}} + {u_{fog}^{st}W_{fog}^{\max}A} - {u_{deh}^{st}W_{deh}^{\max}A}} \right\rbrack}} & (37) \end{matrix}$ where the outdoor water content W_(out)(t) may be represented by:

$\begin{matrix} {{{W_{out}(t)} = \frac{K_{5}R{H_{out}(t)}{K_{1}\left( {{- K_{2}} + {K_{3}e^{C_{4}{\Phi_{out}{(t)}}}}} \right.}}{P_{atm}}}{and}} & (38) \\ {{u_{fog}(t)} = {{u_{fog}^{st}(t)}*P_{fog}}} & (39) \\ {{u_{deh}(t)} = {{u_{deh}^{st}(t)}*P_{deh}}} & (40) \end{matrix}$ The relative humidity inside the greenhouse 100 may be constrained between upper and lower bounds, which may satisfy the following constraints:

$\begin{matrix} {{{w(t)} \leq {RH_{{in},\max}\frac{{P_{sat}(t)}K_{5}}{P_{atm}}}}} & (41) \end{matrix}$ $\begin{matrix} {{w(t)} \geq {RH_{{in},\min}\frac{{P_{sat}(t)}K_{5}}{P_{atm}}}} & (42) \end{matrix}$ Fogging and dehumidification systems may not operate simultaneously, which may be represented by: u _(fog)(t)*u _(deh)(t)=0  (43)

CO₂ is one nutrient consumed by plants, and it is absorbed from the air in gaseous form. Its primary effect on plant production is on photosynthesis. CO₂ is found normally in the atmosphere at a concentration of approximately 380 parts-per-million (ppm), and photosynthesis may increase rapidly with increasing CO₂. Thus, to increase the rate of photosynthesis, the greenhouse may be enriched with additional CO₂. The CO₂ concentration in the greenhouse 100 may be influenced by the injected CO₂, the CO₂ consumption by the plants via the photosynthesis process, and/or the exchange with the environment via natural ventilation. The change in indoor CO₂ concentration may be represented by:

$\begin{matrix} {{C{O_{2}^{in}\left( {t + {\Delta t}} \right)}} = {{{CO}_{2}^{in}(t)} + {\frac{\Delta t}{\rho_{a}V}\left\lbrack {{K_{inj}^{\max}{u_{CO2}^{st}(t)}A} + {\rho_{a}A{u_{vent}(t)}\left( {{C{O_{2}^{out}(t)}} - {C{O_{2}^{in}\left( {t + {\Delta t}} \right)}}} \right)} + {K_{res}{A\left( {K_{6} + {K_{7}{\Phi_{in}(t)}}} \right)}} - \frac{K_{phot}{I(t)}A}{R_{th}}} \right\rbrack}}} & (44) \end{matrix}$ where u _(CO2)(t)=u _(CO2) ^(st)(t)*P _(CO2)  (45) The concentration of CO₂ inside the greenhouse 100 at a time slot may be constrained between upper and lower bounds: CO ₂ ^(in,min)(t)≤CO ₂ ^(in)(t)≤CO ₂ ^(in,max(t))  (46)

With respect to air circulation control, natural ventilation may have a role in affecting the greenhouse climate. It may be used to maintain a uniform environment throughout the greenhouse 100. The ventilation air flow rate u_(vent) of a greenhouse 100 equipped by roof or side vents may be simulated by combining wind and chimney effects by:

$\begin{matrix} {{u_{vent}(t)} = {3600{\frac{A_{v}C_{d}}{2A}\left\lbrack {{2{g\left( \frac{{\Phi_{out}^{k}(t)} - {\Phi_{in}^{k}(t)}}{\Phi_{out}^{k}(t)} \right)}\left( \frac{H_{v}}{4} \right)} + {C_{w}{v_{wind}(t)}^{2}}} \right\rbrack}^{0.5}}} & (47) \end{matrix}$ which can be simplified by neglecting the chimney effect, which is generally insignificant for wind speeds greater than 1.5 meters per second (m/s):

$\begin{matrix} {{u_{vent}(t)} = {3600\frac{A_{v}C_{d}}{2A}C_{w}^{0.5}{v_{wind}(t)}}} & (48) \end{matrix}$ The discharge coefficient of the vent opening (C_(d)) and the overall wind effect coefficient (C_(w)) may both be dimensionless coefficients that vary according to the window's opening angle. Therefore, the ventilation air flow rate may be represented by:

$\begin{matrix} {{u_{vent}(t)} = {3600\frac{A_{v}}{A}{v_{wind}(t)}{G(\alpha)}}} & (49) \end{matrix}$ where

$\begin{matrix} {{G(\alpha)} = {{2.2}9*10^{- 2}*\left( {1 - {\exp\left( \frac{- \alpha}{2{1.1}} \right)}} \right)}} & (50) \end{matrix}$

Then, from the ventilation air flow, N can be obtained, which may represent the greenhouse air exchange rate (h⁻¹), which may be represented by: N(t)=A*u _(vent)(t)/V  (51) The operation of the ventilation may be controlled in the proposed model via the window opening angle, which may be constrained between upper and lower bounds: α_(min)<α<α_(max)  (52)

Light may be a parameter for the plant growth. For example, in addition to ambient light, plant development may be affected also by the light intensity, the photoperiod (light/dark period), and the wavelength or spectral distribution. In greenhouse production, artificial lighting may be used during periods with poor natural light conditions to increase crop growth and quality. Certain embodiments may utilize light emitting diodes (LED) due to some technical advantages compared to traditional lighting sources. Flux may be one design consideration for LEDs, which may be represented by: F _(light) =L*A  (53) The regulation of the greenhouse artificial lighting loads may be performed according to the incident solar irradiation detected by the WSN, and therefore the total power consumed by the supplementary lighting may be represented by:

$\begin{matrix} {{u_{al}(t)} = \left\{ \begin{matrix} {{F_{l{ight}}/\eta_{l}}\ } & {{{if}\ {I(t)}} < I_{\min}} \\ 0 & {otherwise} \end{matrix} \right.} & (54) \end{matrix}$

The power generated by a photovoltaic system may be represented by:

$\begin{matrix} {{u_{pv}\left( {t + k} \right)} = {{u_{{pv},{al}}\left( {t + k} \right)} + {u_{{pv},{CO2}}\left( {t + k} \right)} + {u_{{pv},{deh}}\left( {t + k} \right)} + {u_{{pv},{fog}}\left( {t + k} \right)} + {u_{{pv},{p1}}\left( {t + k} \right)} + {u_{{pv},{p2}}\left( {t + k} \right)} + {u_{{pv},{esu}}\left( {t + k} \right)} + {u_{{pv},{edn}}\left( {t + k} \right)}}} & (55) \end{matrix}$

Certain embodiments may utilize one or more state equations, such as in operation 300. For example, the state equations may output a result that indicates a state of a system, a device, and/or the like described elsewhere herein. The power generated by the wind turbine generator may be represented by:

$\begin{matrix} {{u_{w}\left( {t + k} \right)} = {{u_{w,{al}}\left( {t + k} \right)} + {u_{w,{{CO}2}}\left( {t + k} \right)} + {u_{w,{deh}}\left( {t + k} \right)} + {u_{w,{fog}}\left( {t + k} \right)} + {u_{w,{p1}}\left( {t + k} \right)} + {u_{w,{p2}}\left( {t + k} \right)} + {u_{w,{esu}}\left( {t + k} \right)} + {u_{w,{edn}}\left( {t + k} \right)}}} & (56) \end{matrix}$ The state of charge of the ESU available may be represented by:

$\begin{matrix} {{E_{st}\left( {t + {\Delta t} + k} \right)} = {{E_{st}\left( {t + k} \right)} + {\eta_{Char}{u_{Char}\left( {t + k} \right)}{\Delta t}} - {\eta_{Dis}{u_{Dis}\left( {t + k} \right)}\Delta t}}} & (57) \end{matrix}$ where

$\begin{matrix} {{u_{Char}\left( {t + k} \right)} = {{u_{{pv},{esu}}\left( {t + k} \right)} + {u_{w,{esu}}\left( {t + k} \right)} + {u_{{edn},{esu}}\left( {t + k} \right)} + {u_{{CHP},{esu}}\left( {t + k} \right)}}} & (58) \end{matrix}$ $\begin{matrix} {{u_{Dis}\left( {t + k} \right)} = {{u_{{esu},{al}}\left( {t + k} \right)} + {u_{{esu},{{CO}2}}\left( {t + k} \right)} + {u_{{e{su}},{deh}}\left( {t + k} \right)} + {u_{{ess},{fog}}\left( {t + k} \right)} + {u_{{esu},{p1}}\left( {t + k} \right)} + {u_{{esu},{p2}}\left( {t + k} \right)}}} & (59) \end{matrix}$

Artificial lighting, CO₂ injection, dehumidification, and fogging can be provided either by PV panels, wind turbine generators, the ESU, and/or the DNO. The total power consumed by these loads may be represented by the following equations, respectively:

$\begin{matrix} {{u_{al}\left( {t + k} \right)} = {{u_{{pv},{al}}\left( {t + k} \right)} + {u_{w,{al}}\left( {t + k} \right)} + {u_{{esu},{al}}\left( {t + k} \right)} + {u_{{edn},{al}}\left( {t + k} \right)}}} & (60) \end{matrix}$ $\begin{matrix} {{u_{{CO}2}\left( {t + k} \right)} = {{u_{{pv},{{CO}2}}\left( {t + k} \right)} + {u_{w,{{CO}2}}\left( {t + k} \right)} + {u_{{e{su}},{{CO}2}}\left( {t + k} \right)} + {u_{{edn},{{CO}2}}\left( {t + k} \right)}}} & (61) \end{matrix}$ $\begin{matrix} {{u_{deh}\left( {t + k} \right)} = {{u_{{pv},{deh}}\left( {t + k} \right)} + {u_{w,{deh}}\left( {t + k} \right)} + {u_{{e{su}},{deh}}\left( {t + k} \right)} + {u_{e({{in},{deh}}}\left( {t + k} \right)}}} & (62) \end{matrix}$ $\begin{matrix} {{u_{fog}\left( {t + k} \right)} = {{u_{{pv},{fog}}\left( {t + k} \right)} + {u_{w,{fog}}\left( {t + k} \right)} + {u_{{esu},{fog}}\left( {t + k} \right)} + {u_{{edn},{fog}}\left( {t + k} \right)}}} & (63) \end{matrix}$

The total powers consumed by the pumping stations may be represented by:

$\begin{matrix} {{{u_{p1}\left( {t + k} \right)} = {{u_{{pv},{p1}}\left( {t + k} \right)} + {u_{w,{p1}}\left( {t + k} \right)} + {u_{{esu},{p1}}\left( {t + k} \right)} + {u_{{edn},{p1}}\left( {t + k} \right)}}}} & (64) \end{matrix}$ $\begin{matrix} {{u_{p2}\left( {t + k} \right)} = {{u_{{pv},{p2}}\left( {t + k} \right)} + {u_{w,{p2}}\left( {t + k} \right)} + {u_{{esu},{p2}}\left( {t + k} \right)} + {u_{{edn},{p2}}\left( {t + k} \right)}}} & (65) \end{matrix}$

The total power purchased from the DNO may be represented by:

$\begin{matrix} {{u_{from_{-}{edn}}\left( {t + k} \right)} = {{u_{{edn},{al}}\left( {t + k} \right)} + {u_{{edn},{{CO}2}}\left( {t + k} \right)} + {u_{{edn},{deh}}\left( {t + k} \right)} + {u_{{edn},{fog}}\left( {t + k} \right)} + {u_{{edn},{p1}}\left( {t + k} \right)} + {u_{{edn},{p2}}\left( {t + k} \right)} + {u_{{edn},{esu}}\left( {t + k} \right)}}} & (66) \end{matrix}$

The total power sold to the DNO may be represented by:

$\begin{matrix} {{u_{to_{-}{edn}}\left( {t + k} \right)} = {{u_{{pv},{edn}}\left( {t + k} \right)} + {u_{w,{edn}}\left( {t + k} \right)} + {u_{{CHP},{edn}}\left( {t + k} \right)}}} & (67) \end{matrix}$

FIG. 4 illustrates example parameters for an example setup for simulation and testing of certain embodiments described herein. For example, FIG. 4 illustrated plots 400 for the example parameters. This example setup is not intended to limit the embodiments of the invention, but is rather provided as an example of one possible context in which certain embodiments described herein may be applicable. In this setup, the MPC-based scheduling problem was simulated and tested through several case studies, of which some are described below. Specifically, the cases described below relate to operating in a good amount of renewable generation over a 24-hour interval (case study 1), and operating in a possible worst case scenario over a 4-day interval (case study 2). The length of the prediction horizon and control horizon were set equal to 24 hours (h) and 96 h, respectively, with a control interval of 15 minutes (min).

Certain embodiments described above were utilized to apply a control strategy to a typical greenhouse 100. For the simulation and testing, the expected outdoor temperature, humidity, CO₂, solar radiance, and wind speed, for both case studies, are shown in FIG. 4 . The tested greenhouse was connected to the DNO, the renewable generators (PV modules of 1 kilowatt (kW) and a wind turbine of 3 kW), and to an energy storage unit with a maximal capacity of 24 kW-hours (kWh) to fulfill the electric demand. The tested greenhouse included two pumping stations: one master pump that feeds the reservoir from the water source, and the second local pump dedicated to irrigation. In addition, it was equipped with a micro-CHP with a power-to-heat ratio of 0.2 for heating and cooling, a supplementary artificial light source consisting of 80 LED lamps of 28 watts (W), a CO2 injector, a dehumidifier and an advanced metering infrastructure based on a wireless sensor network.

The greenhouse was configured for the cultivation of tomatoes, specifically, where a day temperature of 22 degrees (°) Celsius (C) and a night temperature of 17° C. is optimum for tomato plant root growth and plant development, and where a diurnal increase of the indoor CO₂ from its ambient level to 800-1000 ppm was used for enhancing its grow rate. The adequate relative humidity needs for tomatoes ranges from 60% to 70%, and the minimum light intensity needed for the photosynthesis is 5500 lux at the plant surface with a 20-hour photoperiod.

Based on these parameters, the expected artificial lighting load reached 2.2 kW from 12:00 ante meridiem (A.M.) to 3:00 A.M. and from 6:00 post meridiem (P.M.) to 12:00 A.M. where the crop would need supplementary artificial lighting to complete its photoperiod. Since greenhouse tomatoes may need at least 0.37 meters squared (m²) of soil per plant with a total planted area of 80 m², and taking into account that a tomato plant may need 2.7 liters (l) of water per day, the expected irrigation water load to be provided by the local pump was equal to 0.025 meters cubed (m³) in the first interval (15 min) of each hour. The dry running protection of the local water pump was also planned. Therefore, a protection system was utilized to help ensure a minimum level of 20 percent (%) of the reservoir capacity. As explained above, this is an example setup in the context of which certain embodiments were tested. This example setup does not limit the application of certain embodiments to other contexts, such as different parameters, different plants, different values for the parameters, etc.

FIGS. 5-14 illustrate example plots of results related to the example setup illustrated in, and described with respect to, FIG. 4 . These example results are provided merely as examples of results/advantages that can be achieved by certain embodiments. The example results presented in the following Figures are not intended to limit application of certain embodiments to particular contexts and/or to limit certain embodiments to particular results/advantages.

The case studies described above (case study 1 and case study 2) may be two example cases where the environmental conditions are favorable or unfavorable to the wind and photovoltaic production. As described below, certain embodiments as applied in the case study 1 were applied to operation or control of a greenhouse over a 24-hour interval, while certain embodiments were applied in the case study 2 to a 4-day simulation. The power produced by photovoltaic panels and wind turbine for both case studies is illustrated in FIG. 5 by plots 500. These plots shows that the peak of the generated photovoltaic power may be around noon and may follow the typical form of daily solar radiation, while the power produced by the wind turbines may be based on sudden variations of wind speed and affected by the wind turbine's stochastic character.

A greenhouse's structural considerations, specifically the glazing material type, may have an influence on greenhouse micro-climate management by providing more or less insulation to cold or heat, and certain embodiments described herein may incorporate such information into some operations described herein. For example, different glazing materials with different conductivities and thicknesses may provide different thermal efficiency and may impact the thermal power levels needed to set the greenhouse temperature at its optimal level. Some common materials used to cover a greenhouse can include the polycarbonate with a thickness of 4 millimeter (mm)-25 mm, glass with a thickness of 3 mm, acrylic with a thickness of 2 mm-10 mm, or polyethylene with a thickness of 6 mm. The conductivities of these materials, respectively, may be equal to 0.19, 1, 0.2, and 0.33 Watts per meter-Kelvin (W/mK). FIG. 6 illustrates a plot 600 of the simulation of MPC-based thermal power output that may be needed to raise the greenhouse temperature to a favorable temperature for various different covering materials. As illustrated, the polycarbonate 25 mm may demonstrate the minimum needed power with an hourly average gain of 31.54 kW compared to the glass. A further benefit of using the polycarbonate as a greenhouse covering material, in addition to the cost reduction of the electrical/thermal energy, may include heating a larger area with the same micro-CHP capacity, and additional benefits may result in the case of greater thicknesses. As a result, polycarbonate 25 mm may be selected to have the highest thermal resistance for the rest of the simulations described herein.

FIGS. 7-10 relate to a first example case study (case study 1) associated with the testing results illustrated in and described with respect to FIGS. 5-14 . Battery charging/discharging policy may be considered as a task to be performed because it may be responsible for fulfilling the power load demand, such as during peak hours. The top plot of the plots 700 illustrated in FIG. 7 depicts the results of the MPC-based optimal behavior of the greenhouse's ESU. As illustrated, the ESU may have different trends of charge and discharge according to the availability of energy, the needed electric loads, and/or the power exchange with the DNO. For instance, in the first interval from 00:00 A.M. to 03:00 A.M., the stored energy may drop gradually from its initial value set at 15 kWh, until reaching a minimum authorized value, and this is may be due to the absence of the renewable energy production and the starting time of artificial lighting. Then, in the second interval from 03:00 A.M. to 09:00 A.M., the battery may charge until reaching a maximal capacity of 24 kWh, such as due to the low energy needed for CO₂ injection and/or for dehumidifying. In addition, it can be observed in the bottom plot of the plots 700 during the same interval of time, that the energy may be sold to the DNO, because wind and solar energy sources and batteries may be abundant to fulfil the loads need. From 09:00 A.M. the battery may start discharging according to the power balance between supply and demand, such as due to the high CO₂ injection load needed by the greenhouse in this period.

Optimal control decisions generated by the optimization problem following the receding horizon strategy for heating (first plot on the top left), dehumidifying (second plot on the bottom left), supplementary lighting (third plot on top right), and CO₂ injection (fourth plot on the bottom right) are depicted in the plots 800 of FIG. 8 . As illustrated, the devices may operate within predefined power ranges to regulate the greenhouse microclimate. Certain embodiments may match the thermal and electrical power outputs of the micro CHP system and the greenhouse temperature reference signal. As can be seen, the micro CHP may be initially exploited to raise the temperature from its initial state of 15.5° C. to the optimal range (see FIG. 9 ).

The micro CHP may continue operating until it reaches its maximum capacity to fulfill the heat demand of the greenhouse, and then may decrease due to the change of the nighttime and daytime optimal temperatures. For the dehumidifier, it may operate during the day because of the strong relation between the temperature and humidity. Relative humidity levels may fluctuate according to greenhouse temperatures, and since the daytime temperature may be higher, the system may provide more energy to dehumidify during this interval of time. In addition, CO₂ injection may constitute electric load during the daytime when the plant starts breathing in CO₂ to promote vegetative growth. The third plot (top right) of the plots 800 of FIG. 8 illustrates a comparison between the resulted artificial lighting power (solid line) and its optimal reference signal (dashed line). As illustrated, the artificial lighting power may drop from the desired range. This may be due to the charging/discharging ESU capacity limits, the low energy produced by the micro-CHP, and/or the unavailability of the PV production. However, the crop may not be strongly affected since the supplementary lighting system may consist of a variable intensity LED illumination system configured to provide a change in light intensity versus the input power.

FIG. 9 illustrates plots 900 depicting the evolution of the MPC-based optimal state of the environmental variables, including the inside temperature (first plot on the top left), CO2 concentration (second plot on the bottom left), relative humidity (third plot on the top right), and window opening angle (fourth plot on the bottom right). As illustrated, the controlled parameters may vary within predetermined ranges. Regarding the greenhouse's natural ventilation, the opening angle may be 0, which may mean that the ventilation may be deactivated to avoid the strong loss of heat and CO2, and consequently wasted energy used to compensate this air exchange loss.

The reservoir may be used to balance the water flow pumped from the water source and intended for crop irrigation. The reservoir may be designed to keep a constant water level defined by the water reference signal, by first irrigating when needed and then by storing the water when the energy is available. The evolution of the MPC-based optimal state of the water reservoir is depicted in plot 1000 of FIG. 10 . As illustrated, the reservoir may have different behaviors regarding charging/discharging water depending on the availability of energy. For example, from 00:00 A.M. to 09:00 A.M. and from 06:00 P.M. to 00:00 A.M., the reservoir may be in charging mode even if the local pump is activated in the first 15 min of each hour, such as to help ensure the water loads. This may be due to the presence of the ESU energy in the first interval and the wind power in the second. However, from 09:00 A.M. to 06:00 P.M., the reservoir may be in discharging mode because of the CO2 enrichment high power load. In the examples depicted, the master pump installed at the reservoir level may demonstrate an ability to handle the water-level fluctuations by maximizing the storage potential.

FIGS. 11-14 relate to a second example case study (case study 2) associated with the testing results illustrated in and described with respect to FIGS. 5-14 . This second case study may relate to the same simulations described above but with different control and prediction horizons to show the continuity of the results over 4 days. As illustrated in these Figures, the ESU may reply to the high electrical appliances' consumption by discharging the stored energy while making sure to handle lower and upper ESU bounds' constraints (see plot 1100 in FIG. 11 ). The portion of the plot associated with the third day (at 2 to 3 on the horizontal axis) can be considered as a possible worst case due to the low energy production (see the top right plot of the plots 500 in FIG. 5 for energy production), which may have resulted in a low energy storage, a zero sale to the DNO, and/or a violation of humidity reference tracking. As shown in the plots 1200 of FIG. 12 and the plots 1300 of FIG. 13 , the relative humidity may not be satisfied during this interval of time, even if the dehumidifier did not reach its maximum capacity, because of the conditions of high outdoor relative humidity and limited available energy. In addition, the artificial lighting power values may have seen the largest declines during that time for the same reasons. One or more other controlled parameters, as well as the control actions, may have been kept within acceptable ranges. FIG. 14 illustrates plots 1400 depicting the time varying four days water reservoir level.

FIG. 15 illustrates an example of an apparatus 10 and an apparatus 20 according to an embodiment. In an embodiment, apparatus 10 and/or apparatus 20 may be an element in the system illustrated in, or described with respect to, FIGS. 1-14 . For example, apparatus 10 and/or apparatus 20 may be a system 102 (or a device thereof), a sensor 104 or 106, a device of electricity supply network 108, EMS 110, an SMU 212, a MCC 214, and/or the like.

In some example embodiments, apparatus 10 may include one or more processors, one or more computer-readable storage medium (for example, memory, storage, or the like), one or more radio access components (for example, a modem, a transceiver, or the like), one or more actuators (e.g., for actuating a mechanical component), and/or a user interface. In some embodiments, apparatus 10 may be configured to operate using one or more radio access technologies, such as GSM, LTE, LTE-A, NR, 5G, WLAN, WiFi, NB-IoT, Bluetooth, NFC, MulteFire, and/or any other radio access technologies. It should be noted that one of ordinary skill in the art would understand that apparatus 10 may include components or features not shown in, or different than, FIG. 15 , depending on the device to which apparatus 10 corresponds.

As illustrated in the example of FIG. 15 , apparatus 10 may include or be coupled to a processor 12 for processing information and executing instructions or operations. Processor 12 may be any type of general or specific purpose processor. In fact, processor 12 may include one or more of general-purpose computers, special purpose computers, microprocessors, digital signal processors (DSPs), field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), and processors based on a multi-core processor architecture, as examples. While a single processor 12 is shown in FIG. 15 , multiple processors may be utilized according to other embodiments. For example, it should be understood that, in certain embodiments, apparatus 10 may include two or more processors that may form a multiprocessor system (e.g., in this case processor 12 may represent a multiprocessor) that may support multiprocessing. In certain embodiments, the multiprocessor system may be tightly coupled or loosely coupled (e.g., to form a computer cluster).

Processor 12 may perform functions associated with the operation of apparatus 10 including, as some examples, precoding of antenna gain/phase parameters, encoding and decoding of individual bits forming a communication message, formatting of information, and overall control of the apparatus 10, including processes related to management of communication resources.

Apparatus 10 may further include or be coupled to a memory 14 (internal or external), which may be coupled to processor 12, for storing information and instructions that may be executed by processor 12. Memory 14 may be one or more memories and of any type suitable to the local application environment, and may be implemented using any suitable volatile or nonvolatile data storage technology such as a semiconductor-based memory device, a magnetic memory device and system, an optical memory device and system, fixed memory, and/or removable memory. For example, memory 14 can be comprised of any combination of random access memory (RAM), read only memory (ROM), static storage such as a magnetic or optical disk, hard disk drive (HDD), or any other type of non-transitory machine or computer readable media. The instructions stored in memory 14 may include program instructions or computer program code that, when executed by processor 12, enable the apparatus 10 to perform tasks as described herein.

In an embodiment, apparatus 10 may further include or be coupled to (internal or external) a drive or port that is configured to accept and read an external computer readable storage medium, such as an optical disc, USB drive, flash drive, or any other storage medium. For example, the external computer readable storage medium may store a computer program or software for execution by processor 12 and/or apparatus 10.

In some embodiments, apparatus 10 may also include or be coupled to one or more antennas 15 for receiving a signal and for transmitting another signal from apparatus 10. Apparatus 10 may further include a transceiver 18 configured to transmit and receive information. The transceiver 18 may also include a radio interface (e.g., a modem) coupled to the antenna 15. The radio interface may correspond to a plurality of radio access technologies including one or more of GSM, LTE, LTE-A, 5G, NR, WLAN, NB-IoT, Bluetooth, BT-LE, NFC, RFID, UWB, and the like. In other embodiments, apparatus 10 may include an input and/or output device (I/O device), such as a display, a button or touch control, a speaker, a microphone, a camera, and/or the like. In certain embodiments, apparatus 10 may further include a user interface, such as a graphical user interface or touchscreen.

In an embodiment, memory 14 stores software modules that provide functionality when executed by processor 12. The modules may include, for example, an operating system that provides operating system functionality for apparatus 10. The memory may also store one or more functional modules, such as an application or program, to provide additional functionality for apparatus 10. The components of apparatus 10 may be implemented in hardware, or as any suitable combination of hardware and software. According to an example embodiment, apparatus 10 may optionally be configured to communicate with an apparatus 20 (which may be similar to apparatus 10) via a wireless or wired communications link 70 according to any radio access technology.

According to some embodiments, processor 12 and memory 14 may be included in or may form a part of processing circuitry or control circuitry. In addition, in some embodiments, transceiver 18 may be included in or may form a part of transceiving circuitry.

As used herein, the term “circuitry” may refer to hardware-only circuitry implementations (e.g., analog and/or digital circuitry), combinations of hardware circuits and software, combinations of analog and/or digital hardware circuits with software/firmware, any portions of hardware processor(s) with software (including digital signal processors) that work together to cause an apparatus (e.g., apparatus 10) to perform various functions, and/or hardware circuit(s) and/or processor(s), or portions thereof, that use software for operation but where the software may not be present when it is not needed for operation. As a further example, as used herein, the term “circuitry” may also cover an implementation of merely a hardware circuit or processor (or multiple processors), or portion of a hardware circuit or processor, and its accompanying software and/or firmware. The term circuitry may also cover, for example, a baseband integrated circuit in a server, cellular network node or device, or other computing or network device.

According to certain embodiments, apparatus 10 may be controlled by memory 14 and processor 12 to perform the functions associated with example embodiments described herein. For example, in some embodiments, apparatus 10 may be configured to perform one or more of the processes described with respect to, or depicted in, FIGS. 1-14 .

For instance, in one embodiment, apparatus 10 may be controlled by memory 14 and processor 12 to initiate a state of a greenhouse; to acquire new environmental data from sensors; to update model predictions; to compute a predicted renewable power generation; to perform an optimization calculation; and to generate a control signal.

Therefore, certain example embodiments provide several technological improvements, enhancements, and/or advantages over existing technological processes. For example, one benefit of some example embodiments is improved management of environmental conditions of a greenhouse, which may conserve energy and/or resources that would otherwise be used in the cultivation of plants in a greenhouse. Accordingly, the use of some example embodiments results in improved functioning of greenhouses and associated devices related to control of the environmental conditions and, therefore constitute an improvement at least to the technological field of greenhouse-control for cultivation, among others.

In some example embodiments, the functionality of any of the methods, processes, signaling diagrams, algorithms or flow charts described herein may be implemented by software and/or computer program code or portions of code stored in memory or other computer readable or tangible media, and executed by a processor.

In some example embodiments, an apparatus may be included or be associated with at least one software application, module, unit or entity configured as arithmetic operation(s), or as a program or portions of it (including an added or updated software routine), executed by at least one operation processor. Programs, also called program products or computer programs, including software routines, applets and macros, may be stored in any apparatus-readable data storage medium and may include program instructions to perform particular tasks.

A computer program product may include one or more computer-executable components which, when the program is run, are configured to carry out some example embodiments. The one or more computer-executable components may be at least one software code or portions of code. Modifications and configurations used for implementing functionality of an example embodiment may be performed as routine(s), which may be implemented as added or updated software routine(s). In one example, software routine(s) may be downloaded into the apparatus.

As an example, software or a computer program code or portions of code may be in a source code form, object code form, or in some intermediate form, and it may be stored in some sort of carrier, distribution medium, or computer readable medium, which may be any entity or device capable of carrying the program. Such carriers may include a record medium, computer memory, read-only memory, photoelectrical and/or electrical carrier signal, telecommunications signal, and/or software distribution package, for example. Depending on the processing power needed, the computer program may be executed in a single electronic digital computer or it may be distributed amongst a number of computers. The computer readable medium or computer readable storage medium may be a non-transitory medium.

In other example embodiments, the functionality may be performed by hardware or circuitry included in an apparatus (e.g., apparatus 10 or apparatus 20), for example through the use of an application specific integrated circuit (ASIC), a programmable gate array (PGA), a field programmable gate array (FPGA), or any other combination of hardware and software. In yet another example embodiment, the functionality may be implemented as a signal, such as a non-tangible means that can be carried by an electromagnetic signal downloaded from the Internet or other network.

According to an example embodiment, an apparatus, such as a node, device, or a corresponding component, may be configured as circuitry, a computer or a microprocessor, such as single-chip computer element, or as a chipset, which may include at least a memory for providing storage capacity used for arithmetic operation(s) and/or an operation processor for executing the arithmetic operation(s).

Example embodiments described herein apply equally to both singular and plural implementations, regardless of whether singular or plural language is used in connection with describing certain embodiments. For example, an embodiment that describes operations of a single EMS, sensor, etc. equally applies to embodiments that include multiple instances of the EMS, sensor, etc., and vice versa. In addition, although certain embodiments have been described in the context of environmental control of a greenhouse, certain embodiments described herein may be broadly applicable to other contexts, such as environmental control of a building other than a greenhouse (e.g., an office building, a warehouse, etc.), or for purposes other than cultivation of plants (e.g., maintenance of animals, storage of goods or products, etc.).

One having ordinary skill in the art will readily understand that the example embodiments as discussed above may be practiced with operations in a different order, and/or with hardware elements in configurations which are different than those which are disclosed. Therefore, although some embodiments have been described based upon these example preferred embodiments, it would be apparent to those of skill in the art that certain modifications, variations, and alternative constructions would be apparent, while remaining within the spirit and scope of example embodiments.

PARTIAL GLOSSARY 1. Sets T Set of time intervals in scheduling horizon 2. Environment variables Φ_(out) Outdoor temperature [° C.] RH_(out) Outdoor relative humidity [%] CO₂ ^(out) Outdoor CO₂ concentration [ppm] v_(wind) Wind speed [m/s] I Outdoor sunlight intensity [W/m2] 3. System variables Φ_(in) Indoor temperature [° C.] RH_(in) Indoor relative humidity [%] CO₂ ^(in) Indoor CO₂ concentration [ppm] I_(in) Indoor light intensity [W/m2] α Window opening angle [deg] 4. Control variables u_(heat) ^(th) Thermal power of the micro-CHP [kW] u_(heat) ^(el) Electric power of the micro-CHP [kW] u_(vent) Natural ventilation air flow [m³/m² · h] u_(CO2) CO₂ enrichment by injection[g/m² · h] u_(CO2) ^(st) Operation status of CO2 enrichment 0 ≤ u_(CO2) ^(st) ≤ 1 u_(al) Artificial lighting power [kW] u_(fog) ^(st) Operation status of fogging 0 ≤ u_(fog) ^(st) ≤ 1. u_(fog) Fogging power [kW] u_(deh) ^(st) Operation status of dehumidification 0 ≤ u_(deh) ^(st) ≤ 1 u_(deh) Dehumidification power [kW] u_(p1) Master pump power [W] u_(p2) Local pump power [W] 5. Parameters Δt Time interval[h] 1 Δ Area of the greenhouse [m²] 80 H Height of the greenhouse [m] 3.5 V Volume of the greenhouse [m³] 280 I_(sc) PV module short circuit current [A] 8.66 I_(mp) PV module maximum power current [A] 8.06 V_(mp) PV module maximum power voltage [V] 37.2 V_(oc) PV module open circuit voltage [V] 46.19 I_(st) Standard light intensity 1000 μ PV module voltage temperature coefficient [V/° C.] −0.45 γ PV module current temperature coefficient [A/° C.] 0.05 η_(pv, s) Serial connection number of PV modules 4 η_(pv, p) Parallel connection number of PV module strings 1 η_(loss) PV connection loss 0.9 u_(pv ,min) PV power output lower bound [kW] 0 u_(pv, max) PV power output upper bound [kW] 1 P_(w) Wind turbine nominal power [kW] 3 v_(c) Wind speed at start up [m/s] 2.5 v_(r) Nominal wind speed [m/s] 12 v_(f) Maximum wind speed [m/s] 25 u_(w, min) Wind turbine power output lower bound [kW] 0 u_(w, max) Wind turbine power output upper bound [kW] 3 η_(Char) Efficiency of battery charge 0.9 η_(Dis) Efficiency of battery discharge 0.9 u_(Char) Power charged to the battery [kW] u_(Dis) Power discharged from the battery [kW] E_(st) Desired stored energy in the battery [kWh] E_(st, min) Energy storage unit lower bound [kWh] 4 E_(st, max) Energy storage unit upper bound [kWh] 24 u_(Char, min) Charging lower bound [kW] u_(Char, max) Charging upper bound [kW] 3 u_(Dis, min) Discharging lower bound [kW] u_(Dis, max) Discharging upper bound [kW] 3 F_(s) Water flow entering the reservoir [m³] F_(gh) Water flow dedicated to feed the greenhouse needs [m³] F_(gh) Desired water flow [m³] 0.025 η_(s) Efficiency of the master pump 0.75 η_(gh) Efficiency of the local pump 0.8 d_(s) Master pump head [m] 50 d_(gh) Local pump head [m] 5 ρ Water Density [kg/m3] 1000 r Desired water level in the reservoir [m³] 1 r_(min) Reservoir lower bound [m³] 0.2 r_(max) Reservoir upper bound [m³] 1.2 R_(th) Thermal resistance of the greenhouse glazing material [° C./kW] 1.6447 C_(air) Heat capacity of indoor air, 0.525 [Kwh/° C.] e Glazing material thickness [mm] 25 k Glazing material conductivity [W/m · K] 0.19 η_(el) Electric efficiency of the micro-CHP η_(th) Thermal efficiency of the micro-CHP Φ_(in) Desired indoor temperature [° C.] 17/22 Φ_(in, min) Minimum optimal temperature [° C.] 16.5/21.5 Φ_(in, max) Maximum optimal temperature [° C.] 17.5/22.5 u_(heat, min) ^(th) Micro-CHP thermal power lower bound[kW] 0 u_(heat, max) ^(th) Micro-CHP thermal power upper bound [kW] 15.6 u_(heat, min) ^(elc) Micro-CHP electric power lower bound [kW] 0 u_(heat, max) ^(elc) Micro-CHP electric power upper bound [kW] 3.2 K1 Constant 100 K2 Constant [Pa]1.7001 K3 Constant [Pa]7.7835 K4 Constant [1/K]1/17.0789 K5 Constant [kgwater/kgair]0.6228 P_(atm) Atmospheric air pressure [Pa] 101325 ρ_(a) Air density [kg/m3] 1.27 W_(evp) Crop evaporation at each hour [kg/m² h] 0.1258 W_(fog) ^(max) Max. water rate of fogging systems [kg/m² h] 0.0096 W_(deh) ^(max) Max. rate of dehumidifier [kg/m² h]; 1.6 P_(deh) Dehumidifier rated power [kW] 2.2 P_(fog) Fogging system rated power [kW] RH^(in) Desired relative humidity [%] 0.65 RH_(in, min) Minimum optimal relative humidity [%] 60 RH_(in, max) Maximum optimal relative humidity [%] 70 K6 Coefficients associated with the respiration rate of the crop [° C.] −0.27 K7 Coefficients associated with the respiration rate of the crop (no dim.); 0.05. K_(inj) ^(max) Max. carbon injected by CO2 generator [kg/m2] 0.8e−3. K_(res) Respiration coefficient of crops [kg/(m2 h K))] 1.224e−6 K_(phot) Photosynthesis coefficient of crops [kg/Wh] 165.708e−3. P_(C02) CO2 generator rated power [kW] 8 CO₂ ^(in) Desired indoor CO₂ rate [ppm] 820 CO₂ ^(in, min) Minimum optimal CO₂ rate [ppm] 800 CO₂ ^(in, max) Maximum optimal CO₂ rate [ppm] 1000 A_(v) Vent opening [m²] 1 α_(min) Minimum window opening [deg] 0 α_(max) Maximum window opening [deg] 44 H_(v) Vertical dimension of the ventilation opening [m] g Gravity acceleration constant [m/s²] 9.8 C_(d) Discharge coefficient of the vent opening C_(w) Wind effect coefficient L Light intensity [lux] 5500 u_(al) Desired artificial lighting load [kW] 2.2 η_(l) LED efficiency [lm/W] 200 I_(min) Minimum light intensity [W/m²] 

We claim:
 1. A method, comprising: initiating, by a device, a state of a greenhouse; acquiring new environmental data from one or more sensors after initiating the state of the greenhouse; updating one or more model predictions based on the acquired data; computing a predicted renewable power generation of one or more renewable energy sources after updating the one or more model predictions; performing an optimization calculation based on the one or more model predictions or the predicted renewable power generation; and generating a control signal based on the optimization calculation, wherein the control signal is to control one or more systems associated with the greenhouse, wherein the one or more systems are associated with controlling environmental conditions within the greenhouse.
 2. The method according to claim 1, wherein the state is of at least one of: an energy storage unit, a water reservoir, a renewable energy power generation, an inside temperature of the greenhouse, a carbon-dioxide level within the greenhouse, a lighting load within the greenhouse, or an angle of an opening of a vent of the greenhouse.
 3. The method according to claim 1, wherein initiating the state of the greenhouse further comprises: utilizing a state equation related to computing a state of at least one of: photovoltaic power generation, power generated by a wind turbine generator, a charge of an energy storage unit, a total power consumed by artificial lighting, carbon-dioxide injection, dehumidification, fogging, a total power consumed by one or more pumping stations, a total power purchased from a distributed network operator, or a total power sold to the distributed network operator.
 4. The method according to claim 1, further comprising: initiating a timer or a counter prior to acquiring the new environmental data, wherein the timer or the counter is associated with controlling a quantity of times that the device performs the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization calculation, or the generating the control signal.
 5. The method according to claim 4, further comprising: determining whether the timer or the counter indicates that the quantity of times has satisfied a threshold; and either: performing the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization, or the generating the control signal for an additional time, or terminating further operations.
 6. The method according to claim 1, wherein the one or more sensors comprise at least one of: one or more internal environmental sensors that monitor an internal environment of the greenhouse, or one or more external environmental sensors that monitor an external environment of the greenhouse.
 7. The method according to claim 1, wherein the one or more systems comprise at least one of: a heating or cooling system, an artificial lighting system, a fogging system, or a carbon-dioxide injector system.
 8. An apparatus, comprising: at least one processor; and at least one memory including computer program code, wherein the at least one memory and the computer program code are configured to, with the at least one processor, cause the apparatus at least to: initiate a state of a greenhouse; acquire new environmental data from one or more sensors after initiating the state of the greenhouse; update one or more model predictions based on the acquired data; compute a predicted renewable power generation of one or more renewable energy sources after updating the one or more model predictions; perform an optimization calculation based on the one or more model predictions or the predicted renewable power generation; and generate a control signal based on the optimization calculation, wherein the control signal is to control one or more systems associated with the greenhouse, wherein the one or more systems are associated with controlling environmental conditions within the greenhouse.
 9. The apparatus according to claim 8, wherein the at least one memory and the computer program code are configured to, with the at least one processor, further cause the apparatus, when updating the model predictions, at least to: predict external environmental conditions of the greenhouse or internal environmental conditions of the greenhouse based on the data.
 10. The apparatus according to claim 8, wherein the renewable power generation is associated with one or more photovoltaic panels or one or more wind turbine generators.
 11. The apparatus according to claim 8, wherein the at least one memory and the computer program code are configured to, with the at least one processor, further cause the apparatus, when performing the optimization calculation, at least to: perform the optimization calculation utilizing an objective function, wherein the objective function includes one or more quadratic errors between one or more manipulated variables and reference trajectory signals.
 12. The apparatus according to claim 8, wherein the at least one memory and the computer program code are configured to, with the at least one processor, further cause the apparatus, when initiating the state of the greenhouse, at least to: utilize a state equation related to computing a state of at least one of: photovoltaic power generation, power generated by a wind turbine generator, a charge of an energy storage unit, a total power consumed by artificial lighting, carbon-dioxide injection, dehumidification, fogging, a total power consumed by one or more pumping stations, a total power purchased from a distributed network operator, or a total power sold to the distributed network operator.
 13. The apparatus according to claim 8, wherein the at least one memory and the computer program code are configured to, with the at least one processor, further cause the apparatus at least to: perform the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization, and the generating the control signal for a threshold amount of time or a threshold quantity of iterations.
 14. The apparatus according to claim 8, wherein the at least one memory and the computer program code are configured to, with the at least one processor, further cause the apparatus at least to: determine whether the timer or the counter indicates that the threshold amount of time or the threshold quantity of iterations has been satisfied; and either: perform the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization, or the generating the control signal for an additional time period or iteration, or terminate further operations.
 15. An apparatus, comprising: means for initiating a state of a greenhouse; means for acquiring new environmental data from one or more sensors after initiating the state of the greenhouse; means for updating one or more model predictions based on the acquired data; means for computing a predicted renewable power generation of one or more renewable energy sources after updating the one or more model predictions; means for performing an optimization calculation based on the one or more model predictions or the predicted renewable power generation; and means for generating a control signal based on the optimization calculation, wherein the control signal is to control one or more systems associated with the greenhouse, wherein the one or more systems are associated with controlling environmental conditions within the greenhouse.
 16. The apparatus of claim 15, further comprising: means for utilizing a state equation related to computing a state of at least one of: photovoltaic power generation, power generated by a wind turbine generator, a charge of an energy storage unit, a total power consumed by artificial lighting, carbon-dioxide injection, dehumidification, fogging, a total power consumed by one or more pumping stations, a total power purchased from a distributed network operator, or a total power sold to the distributed network operator.
 17. The apparatus of claim 15, further comprising: means for initiating a timer or a counter prior to acquiring the new environmental data, wherein the timer or the counter is associated with controlling a quantity of times that the apparatus performs the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization calculation, or the generating the control signal.
 18. The apparatus of claim 17, further comprising: means for determining whether the timer or the counter indicates that the quantity of times has satisfied a threshold; and either: means for performing the acquiring the new environmental data, the updating the one or more model predictions, the computing the predicted renewable power generation, the performing the optimization calculation, or the generating the control signal an additional time, or means for terminating further operations.
 19. The apparatus of claim 15, wherein the means for updating the one or more model predictions further comprises: means for predicting external environmental conditions of the greenhouse or internal environmental conditions of the greenhouse based on the data.
 20. The apparatus of claim 15, wherein the means for performing the optimization calculation further comprises: means for performing the optimization calculation utilizing an objective function, wherein the objective function includes one or more quadratic errors between one or more manipulated variables and reference trajectory signals. 